package com.example.finallyjob.dao;

import com.example.finallyjob.entity.User;
import com.example.finallyjob.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class UserImp implements UserMapper {
    @Autowired
    UserMapper userMapper;

    @Override
    public User login(User user) {
        return userMapper.login(user);
    }

    @Override
    public int RegsityUser(User user) {
        return userMapper.RegsityUser(user);
    }

    @Override
    public int RegsityAdmin(User user) {
        return userMapper.RegsityAdmin(user);
    }

    @Override
    public int agree(User user) {
        return userMapper.agree(user);
    }

    @Override
    public int Updata(User user) {
        return userMapper.Updata(user);
    }

    @Override
    public int DeleteT(String num) {
        return userMapper.DeleteT(num);
    }

    @Override
    public int DeleteV(String num) {
        return userMapper.DeleteV(num);
    }
}
